
function showUser_(str)
{
if (str=="")
  {
  document.getElementById("thietbi").innerHTML="";
  return;
  } 
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp_=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp_=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp_.onreadystatechange=function()
  {
  if (xmlhttp_.readyState==4 && xmlhttp_.status==200)
    {
	if (xmlhttp_.responseText==0){
	document.getElementById("na2").checked ="checked";
  
  }else if (xmlhttp_.responseText==1){
  document.getElementById("na1").checked ="checked";
  }
    document.getElementById("thietbi").innerHTML=xmlhttp_.responseText;
    }
  }
  
xmlhttp_.open("GET","php8-2csdl-1_2.php?q="+str,true);
xmlhttp_.send();
}
setInterval("showUser_()",10);
